package cn.zxf.spring.small.function.annotation.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

    public static void main( String[] args ) {
	AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext( DemoConfig.class );

	DemoService demoService = context.getBean( DemoService.class );

	demoService.outputResult();

	context.close();
    }

}
